var TopicService = function(){
    
};

TopicService.prototype = {
    JOB_TYPE: 'job',
    
    get: function(topicType){
        return this.services[topicType];
    },
    
    register: function(topicType, service){
        this.services = this.services || {};
        this.services[topicType] = service;
    }
};

var topicServiceInstance = function(){
    var instance = new TopicService();
    instance.register(instance.JOB_TYPE, new TopicService());
    return instance;
};

// require(topicService)  ==> { topicService: { services: { job: {} } } }
exports.topicService = topicServiceInstance();


// require(topicService)  ==> { services: { job: {} } }
/*
var topicService = topicServiceInstance();
module.exports = topicService;
*/